﻿<%@ Page Title="Administration" Language="C#" MasterPageFile="~/Pages/Site.Master" AutoEventWireup="true" CodeBehind="HomePage.aspx.cs" Inherits="Altairis.MailToolkit.ListManager.Pages.Admin.HomePage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Main" runat="server">
    <h1><asp:Localize runat="server" Text="Mailing lists" /></h1>
    <asp:ListView ID="MailingListView" runat="server">
        <LayoutTemplate>
            <table class="grid">
                <thead>
                    <tr>
                        <th></th>
                        <th><asp:Localize runat="server" Text="Name" /></th>
                        <th><asp:Localize runat="server" Text="Description" /></th>
                        <th><asp:Localize runat="server" Text="Members" /></th>
                    </tr>
                </thead>
                <tbody>
                    <asp:PlaceHolder ID="ItemPlaceHolder" runat="server" />
                </tbody>
            </table>
        </LayoutTemplate>
        <ItemTemplate>
            <tr>
                <th style="width: 6ex">
                    <asp:HyperLink NavigateUrl='<%# this.GetRouteUrl("AdminImportMembers", new { listname = Eval("Name") }) %>' Text="Import" runat="server" />
                </th>
                <td class="code" style="width: 25ex">
                    <%# Eval("Name") %>
                </td>
                <td>
                    <%# Eval("Description") %>
                </td>
                <td class="r" style="width: 7ex">
                    <%# Eval("MemberCount") %>
                </td>
            </tr>
        </ItemTemplate>
    </asp:ListView>
</asp:Content>
